﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegularExample.aspx.cs" Inherits="RegularExample" %>
<%@ Register TagPrefix="mobile"
    Namespace="System.Web.UI.MobileControls"
    Assembly="System.Web.Mobile" %>
   
<mobile:Form id="Form1" runat="server">
    <mobile:Label runat="server">
        ZIP Code
    </mobile:Label>
    <mobile:TextBox id="zip" runat="server"/>
    <mobile:Command id="Command1" runat="server" OnClick="Command1_Click">
        Submit
    </mobile:Command>
    <mobile:RegularExpressionValidator
        id="RegularExpressionValidator1"
        runat="server"
        ErrorMessage="Invalid ZIP Code"
        ControlToValidate="zip" ValidationExpression="\d{5}(-\d{4})?"/>
</mobile:Form>
   
<mobile:Form id="Form2" runat="server">
    <mobile:Label runat="server">
        Valid ZIP Code
    </mobile:Label>
</mobile:Form>y>
</html>
